load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "misspell_lib",
    srcs = ["main.go"],
    importmap = "github.com/cockroachdb/cockroach/vendor/github.com/client9/misspell/cmd/misspell",
    importpath = "github.com/client9/misspell/cmd/misspell",
    visibility = ["//visibility:private"],
    deps = ["//vendor/github.com/client9/misspell"],
)

go_binary(
    name = "misspell",
    embed = [":misspell_lib"],
    visibility = ["//visibility:public"],
)
